package com.mate.cloud.sensitive.handler;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

/**
 * @description: 敏感数据处理接口
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2025/2/11 17:20
 * @updateUser: MI
 * @updateTime: 2025/2/11 17:20
 * @updateRemark: 修改内容
 * @version: v1.0
 */
public interface SecurityHandler<A extends Annotation> {
    boolean support(Field field);

    A acquire(Field field);

    String handleEncrypt(String source, A annotation);

    String handleDecrypt(String source, A annotation);
}
